package kr.pe.xissy.soulmate.service;

import java.net.URL;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.keyvalue.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class Example {

	// inject the actual template
	@Autowired
	private StringRedisTemplate	redisTemplate;

	public void addLink(String userId, URL url) {
		redisTemplate.opsForList().leftPush(userId, url.toExternalForm());
	}

}
